package com.cn.hjsj.api.api;

import com.cn.hjsj.api.bean.PromotionsBean;

import java.util.Map;

/**
 * Created by zsj on 2017/9/13.
 */
public interface PromotionsControl {

    /**
     * 插入活动包
     *
     * @param promotionsBean
     * @return map
     */
    Map<String, Object> insert(PromotionsBean promotionsBean);


    /**
     * 修改活动包
     *
     * @param promotionsBean         set条件
     * @param promotionBeansParmeter where条件
     * @return map
     */
    Map<String, Object> update(PromotionsBean promotionsBean, PromotionsBean promotionBeansParmeter);


    /**
     * 删除活动包
     *
     * @param promotionBeansParmeter where条件
     * @return map
     */
    Map<String, Object> delete(PromotionsBean promotionBeansParmeter);


    /**
     * 查询活动包列表
     *
     * @param promotionBeansParmeter where条件
     * @return map
     */
    Map<String, Object> getList(PromotionsBean promotionBeansParmeter);


    /**
     * 查询活动包列表数量
     *
     * @param promotionBeansParmeter where条件
     * @return map
     */
    Map<String, Object> getListCount(PromotionsBean promotionBeansParmeter);

}
